<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label for="c-group_id" class="control-label col-xs-12 col-sm-2">{:__('Group')}:</label>
        <div class="col-xs-12 col-sm-8">
            {$groupList}
        </div>
    </div>
    <div class="form-group">
        <label for="c-group_type" class="control-label col-xs-12 col-sm-2">{:__('角色期限')}:</label>
        <div class="col-xs-12 col-sm-8">
            {$groupTypeList}
        </div>
    </div>
    <div class="form-group" id="group_end_time" {if condition="$row.group_type == 2"} style="display: block;" {else /} style="display: none;" {/if}>
    <label for="c-group-end-time" class="control-label col-xs-12 col-sm-2">{:__('角色到期时间')}:</label>
    <div class="col-xs-12 col-sm-8">
        <div class='input-group datetimepicker' style="width: 60%">
            <input type='text' class="form-control" id="c-group-end-time" name="group_end_time" value="{$row.group_end_time|htmlentities}"/>
            <span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
        </div>
    </div>
    </div>
    <div class="form-group">
        <label for="c-username" class="control-label col-xs-12 col-sm-2">{:__('Username')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-username" data-rule="required" class="form-control" name="username" type="text" value="{$row.username|htmlentities}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label for="c-nickname" class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-nickname" data-rule="required" class="form-control" name="nickname" type="text" value="{$row.nickname|htmlentities}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label for="c-mobile" class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mobile" data-rule="" class="form-control" name="mobile" type="text" value="{$row.mobile|htmlentities}" disabled>
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
